package com.info.zhiduoduo.repository.mapper.maker;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.info.zhiduoduo.repository.dto.maker.MakerFinishTaxDto;
import com.info.zhiduoduo.repository.entity.maker.MakerFinishTax;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 创客标签 Mapper 接口
 * </p>
 *
 * @author bob
 * @since 2018-12-30
 */
public interface MakerFinishTaxMapper extends BaseMapper<MakerFinishTax> {

	@Select("select mft.*,ms.username,ms.studionickname,sm.managername " +
			"from zdd_maker_finish_tax mft " +
			"join zdd_maker_studio ms on ms.userid = mft.userid " +
			"left join zdd_system_manager sm on sm.managerid = mft.managerid " +
			"where mft.userid = #{userid} " +
			"order by mft.id desc ")
	List<MakerFinishTaxDto> getMakerFinishTaxList(@Param("userid") int userid);
}
